package net.lzzy.lxq.dao;

import net.lzzy.lxq.entities.Carousel;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GetCarouselInterface {

    @Results({
            @Result(property = "imgUrl",column = "img_url"),
            @Result(property = "carouselTitle",column = "carousel_title"),
            @Result(property = "carouselContent",column = "carousel_content"),
            @Result(property = "href",column = "carousel_href")
    })
    @Select("select * from carousel")
    List<Carousel> getAllCarousels();
}
